package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.List;

/**
 * 出库订单表
 */
@TableName("t_outboundOrder")
public class OutboundOrderBean {
    /** 出库订单Id */
    @TableId(value = "pk_outboundOrderId",type = IdType.AUTO)
    private Integer outboundOrderId;
    /** 客户名称 */
    @TableField("ob_connectionName")
    private String connectionName;
    /** 销售员真实姓名 */
    @TableField("ob_name")
    private String name;
    /** 销售时间 */
    @TableField("ob_outDate")
    private LocalDate outDate=LocalDate.now();
    /** 订单总额 */
    @TableField("ob_total")
    private Integer total;
    /** 送货地址 */
    @TableField("ob_address")
    private String address;
    /** 出库订单详情集合 */
    @TableField(exist = false)
    private List<OutboundInfoBean> outboundInfoList;

    public Integer getOutboundOrderId() {
        return outboundOrderId;
    }

    public void setOutboundOrderId(Integer outboundOrderId) {
        this.outboundOrderId = outboundOrderId;
    }

    public OutboundOrderBean() {
    }

    public OutboundOrderBean(String connectionName, String name, Integer total, String address) {
        this.connectionName = connectionName;
        this.name = name;
        this.total = total;
        this.address = address;
    }


    public String getConnectionName() {
        return connectionName;
    }

    public void setConnectionName(String connectionName) {
        this.connectionName = connectionName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getOutDate() {
        return outDate;
    }

    public void setOutDate(LocalDate outDate) {
        this.outDate = outDate;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<OutboundInfoBean> getOutboundInfoList() {
        return outboundInfoList;
    }

    public void setOutboundInfoList(List<OutboundInfoBean> outboundInfoList) {
        this.outboundInfoList = outboundInfoList;
    }

    @Override
    public String toString() {
        return "OutboundOrderBean{" +
                "outboundOrderId=" + outboundOrderId +
                ", connectionName='" + connectionName + '\'' +
                ", name='" + name + '\'' +
                ", outDate=" + outDate +
                ", total=" + total +
                ", address='" + address + '\'' +
                ", outboundInfoList=" + outboundInfoList +
                '}'+'\n';
    }
}
